package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tb_order")
public class OrderEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("goods_name")
    private String goodsName;

    @TableField("price")
    private int price;

    @TableField("nums")
    private int nums;

    @TableField("user_id")
    private Integer userId;


}
